<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Represents a position (x,y)</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ui.installation.html">« 安装</a></li>
      <li style="float: right;"><a href="ui-point.at.html">UI\Point::at »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.ui.html">UI</a></li>
    <li>Represents a position (x,y)</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.ui-point" class="reference">

 <h1 class="title">Represents a position (x,y)</h1>
 

 <div class="partintro"><p class="verinfo">(UI 0.9.9)</p>


  <div class="section" id="ui-point.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    Points are used throughout UI to represent co-ordinates on a screen, control, or area.
   </p>
  </div>


  <div class="section" id="ui-point.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">final</span>
      <span class="modifier">class</span> <strong class="classname">UI\Point</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
      <var class="varname"><a href="class.ui-point.html#ui-point.props.x">$<var class="varname">x</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
      <var class="varname"><a href="class.ui-point.html#ui-point.props.y">$<var class="varname">y</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constructor */</div>
    <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="ui-point.construct.html" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type">float</span> <code class="parameter">$x</code></span>, <span class="methodparam"><span class="type">float</span> <code class="parameter">$y</code></span>)</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="ui-point.at.html" class="methodname">at</a></span>(<span class="methodparam"><span class="type">float</span> <code class="parameter">$point</code></span>): <span class="type"><a href="class.ui-point.html" class="type UI\Point">UI\Point</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="ui-point.at.html" class="methodname">at</a></span>(<span class="methodparam"><span class="type"><a href="class.ui-size.html" class="type UI\Size">UI\Size</a></span> <code class="parameter">$size</code></span>): <span class="type"><a href="class.ui-point.html" class="type UI\Point">UI\Point</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-point.getx.html" class="methodname">getX</a></span>(): <span class="type">float</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-point.gety.html" class="methodname">getY</a></span>(): <span class="type">float</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-point.setx.html" class="methodname">setX</a></span>(<span class="methodparam"><span class="type">float</span> <code class="parameter">$point</code></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="ui-point.sety.html" class="methodname">setY</a></span>(<span class="methodparam"><span class="type">float</span> <code class="parameter">$point</code></span>)</div>

   }</div>


  </div>

  

  <div class="section" id="ui-point.props">
   <h2 class="title">属性</h2>
   <dl>
    
     <dt id="ui-point.props.x"><var class="varname">x</var></dt>

     <dd>

      <p class="para">
       Holds the X co-ordinate, can be read/written directly
      </p>
     </dd>

    
    
     <dt id="ui-point.props.y"><var class="varname">y</var></dt>

     <dd>

      <p class="para">
       Holds the Y co-ordinate, can be read/written directly
      </p>
     </dd>

    
   </dl>

  </div>



 </div>

 











































<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="ui-point.at.html">UI\Point::at</a> — Size Coercion</li><li><a href="ui-point.construct.html">UI\Point::__construct</a> — Construct a new Point</li><li><a href="ui-point.getx.html">UI\Point::getX</a> — Retrieves X</li><li><a href="ui-point.gety.html">UI\Point::getY</a> — Retrieves Y</li><li><a href="ui-point.setx.html">UI\Point::setX</a> — Set X</li><li><a href="ui-point.sety.html">UI\Point::setY</a> — Set Y</li></ul>
</div>
</div></div></body></html>